//
//  DetailViewController.m
//  Artists
//
//  Created by steven.zhan on 14-9-9.
//  Copyright (c) 2014年 Hollance. All rights reserved.
//

#import "DetailViewController.h"

@interface DetailViewController ()

@end

@implementation DetailViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

-(IBAction)coolAction
{
    [self.delegate detailViewController:self didPickButtonWithIndex:0];
}

-(IBAction)mehAction
{
    [self.delegate detailViewController:self didPickButtonWithIndex:1];
}

- (void)dealloc
{
    NSLog(@"dealloc DetailViewController");
    NSLog(@"artistName '%@'",self.artistName);
    NSLog(@"navigationBar %@",self.navigationBar);
    CGPoint
}


- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.navigationBar.topItem.title=self.artistName;
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
